local i_util = {}

function i_util:ExRemote(str)
    if not TheNet:GetIsServerAdmin() then
        return
    end
    local x, _, z = TheSim:ProjectScreenPos(TheSim:GetPosition())
    TheNet:SendRemoteExecute(str, x, z)
end

function i_util:GoTo(x, z)
    if type(x) ~= "number" and type(z) ~= "number" then
        return print("参数非法！x =", x, "z =", z)
    end
    local fnstr = "ThePlayer.Transform:SetPosition(" .. x .. ", 0, " .. z .. ")"
    self:ExRemote(fnstr)
end

return i_util
